-- GENERATED SPELL FOR [Bleeding Hollow Grunt] --


function spell0_16871(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_16871', 605, 1)
end

function spell1_16871(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16871', 602, 1)
end

function Sorts_16871(pUnit, Event)
local choix_sorts_16871 = math.random(0, 1)
if choix_sorts_16871 == 0 then
pUnit:RegisterEvent('spell0_16871', 1, 1)
end
if choix_sorts_16871 == 1 then
pUnit:RegisterEvent('spell1_16871', 1, 1)
end
end

function mob16871_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16871', math.random(1500, 3000), 1)
end

function mob16871_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16871_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16871_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16871, 1, 'mob16871_Action')
RegisterUnitEvent(16871, 2, 'mob16871_Leave')
RegisterUnitEvent(16871, 3, 'mob16871_Kill')
RegisterUnitEvent(16871, 4, 'mob16871_Die')
